#ifndef JOB_H
#define JOB_H

#include <QObject>
#include <QStringList>

class TranslationRules;
class Job : public QObject
{
Q_OBJECT
public:
    explicit Job(QObject *parent = 0);

signals:

public slots:
    void setOutput(const QString& output, bool singleOutput = false);
    void addFile(const QString& filePath);
    void addFiles(const QStringList& filePaths);
    void removeFile(const QString& filePath);
    void removeFiles(const QStringList& filePaths);
    void setRules(TranslationRules* rules);
    bool run();
    friend class JobDialog;
private:
    TranslationRules *m_rules;
    QStringList m_filePaths;
    QString m_output;
    bool m_singleOutput;
};

#endif // JOB_H
